  /**
   * Generate time : 2016-05-09 11:00:27
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cn.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCNMcmodule 
 * table comment : 煤样编码管理 
 */
public class ZMCNMcmodule extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdStatus = "草拟";		/* 状态*/
	private String fdMyCode = " ";		/* 煤样编码*/
	private String fdMyDetail = " ";		/* 煤样编码说明*/
	private String fdMyType = " ";		/* 煤样编码类型*/
	private String fdRemark = " ";		/* 备注*/
	private String fdMyStation = " ";		/* 所属站*/
	private String fdMiningId=" "; /*矿id*/
	private String fdPlace=" "; /*地点*/
	private String fdCustom=" ";/*单位或用户*/
	private BigDecimal fdNo = new BigDecimal("0"); /*序号*/
	private String fdType=" ";/*样品类别*/
	private String fdMyStationName = " ";		/* 所属站名*/
	private String fdReportName = " ";		/* 所属站名*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(6);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyCode");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("煤样编码");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyDetail");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("煤样编码说明");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyType");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("煤样编码类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemark");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyStation");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("所属站");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("矿id");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlace");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("地点");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCustom");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("单位或用户");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNo");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("序号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdType");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("样品类别");
	eiMetadata.addMeta(eiColumn);

	eiColumn = new EiColumn("fdMyStationName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("分站名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("分站名称");
	eiMetadata.addMeta(eiColumn);
	}
	/**
	 * the constructor
	 */
	public ZMCNMcmodule() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	/**
	 * get the fdMyCode - 煤样编码
	 * @return the fdMyCode
	 */
	public String getFdMyCode() {
		return this.fdMyCode;
	}
	
	/**
	 * set the fdMyCode - 煤样编码
	 */
	public void setFdMyCode(String fdMyCode) {
		this.fdMyCode = fdMyCode;
	}
	/**
	 * get the fdMyDetail - 煤样编码说明
	 * @return the fdMyDetail
	 */
	public String getFdMyDetail() {
		return this.fdMyDetail;
	}
	
	/**
	 * set the fdMyDetail - 煤样编码说明
	 */
	public void setFdMyDetail(String fdMyDetail) {
		this.fdMyDetail = fdMyDetail;
	}
	/**
	 * get the fdMyType - 煤样编码类型
	 * @return the fdMyType
	 */
	public String getFdMyType() {
		return this.fdMyType;
	}
	
	/**
	 * set the fdMyType - 煤样编码类型
	 */
	public void setFdMyType(String fdMyType) {
		this.fdMyType = fdMyType;
	}
	/**
	 * get the fdRemark - 备注
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}
	
	/**
	 * set the fdRemark - 备注
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}
	/**
	 * get the fdMyStation - 所属站
	 * @return the fdMyStation
	 */
	public String getFdMyStation() {
		return this.fdMyStation;
	}
	
	/**
	 * set the fdMyStation - 所属站
	 */
	public void setFdMyStation(String fdMyStation) {
		this.fdMyStation = fdMyStation;
	}
	
	/**
	 * get the fdMiningId - 矿id
	 * @return the fdMiningId
	 */
	public String getFdMiningId() {
		return this.fdMiningId;
	}
	
	/**
	 * set the fdMiningId - 矿id
	 */
	public void setFdMiningId(String fdMiningId) {
		this.fdMiningId = fdMiningId;
	}
	
	/**
	 * set the fdPlace - 地点
	 */
	public void setFdPlace(String fdPlace) {
		this.fdPlace = fdPlace;
	}
	
	/**
	 * get the fdPlace - 地点
	 * @return the fdPlace
	 */
	public String getFdPlace() {
		return this.fdPlace;
	}
	
	/**
	 * set the fdCustom - 单位或用户
	 */
	public void setFdCustom(String fdCustom) {
		this.fdCustom = fdCustom;
	}
	
	/**
	 * get the fdCustom - 单位或用户
	 * @return the fdCustom
	 */
	public String getFdCustom() {
		return this.fdCustom;
	}
	
	/**
	 * set the fdNo - 序号
	 */
	public void setFdNo(BigDecimal fdNo) {
		this.fdNo = fdNo;
	}
	
	/**
	 * get the fdNo - 序号
	 * @return the fdNo
	 */
	public BigDecimal getFdNo() {
		return this.fdNo;
	}
	
	/**
	 * set the fdType - 样品类别
	 */
	public void setFdType(String fdType) {
		this.fdType = fdType;
	}
	
	/**
	 * get the fdType - 样品类别
	 * @return the fdType
	 */
	public String getFdType() {
		return this.fdType;
	}
	
	/**
	 * get the fdMyStationName - 所属站名
	 * @return the fdMyStationName
	 */
	public String getFdMyStationName() {
		return this.fdMyStationName;
	}
	
	/**
	 * set the fdMyStationName - 所属站名
	 */
	public void setFdMyStationName(String fdMyStationName) {
		this.fdMyStationName = fdMyStationName;
	}
	
	/**
	 * get the fdMyStationName - 所属站名
	 * @return the fdMyStationName
	 */
	public String getFdReportName() {
		return this.fdReportName;
	}
	
	/**
	 * set the fdMyStationName - 所属站名
	 */
	public void setFdReportName(String fdReportName) {
		this.fdReportName = fdReportName;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdMyCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMyCode")), fdMyCode));
		setFdMyDetail(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMyDetail")), fdMyDetail));
		setFdMyType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMyType")), fdMyType));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
		setFdMyStation(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMyStation")), fdMyStation));
		setFdMiningId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningId")), fdMiningId));
		setFdPlace(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlace")), fdPlace));
		setFdCustom(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCustom")), fdCustom));
		setFdNo(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdNo")), fdNo));
		setFdType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdType")), fdType));
		setFdMyStationName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMyStationName")), fdMyStationName));
		setFdReportName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportName")), fdReportName));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdMyCode",StringUtils.toString(fdMyCode, eiMetadata.getMeta("fdMyCode")));	
			map.put("fdMyDetail",StringUtils.toString(fdMyDetail, eiMetadata.getMeta("fdMyDetail")));	
			map.put("fdMyType",StringUtils.toString(fdMyType, eiMetadata.getMeta("fdMyType")));	
			map.put("fdRemark",StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));	
			map.put("fdMyStation",StringUtils.toString(fdMyStation, eiMetadata.getMeta("fdMyStation")));
			
			map.put("fdMiningId",StringUtils.toString(fdMiningId, eiMetadata.getMeta("fdMiningId")));
			map.put("fdPlace",StringUtils.toString(fdPlace, eiMetadata.getMeta("fdPlace")));
			map.put("fdCustom",StringUtils.toString(fdCustom, eiMetadata.getMeta("fdCustom")));
			map.put("fdNo",StringUtils.toString(fdNo, eiMetadata.getMeta("fdNo")));
			map.put("fdType",StringUtils.toString(fdType, eiMetadata.getMeta("fdType")));
			map.put("fdMyStationName",StringUtils.toString(fdMyStationName, eiMetadata.getMeta("fdMyStationName")));
			map.put("fdReportName",StringUtils.toString(fdReportName, eiMetadata.getMeta("fdReportName")));
			
		return map;
	
	}
}